package com.ks.phone.responseBean;

import com.alibaba.fastjson.annotation.JSONField;

import java.io.Serializable;

public class UserResponse implements Serializable {
    @JSONField(name = "user")
    private UserDTO user;
    @JSONField(name = "token")
    private String token;

    public UserDTO getUser() {
        return user;
    }

    public void setUser(UserDTO user) {
        this.user = user;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public static class UserDTO {
        @JSONField(name = "id")
        private Integer id;
        @JSONField(name = "username")
        private String username;
        @JSONField(name = "password")
        private String password;
        @JSONField(name = "mobile")
        private String mobile;
        @JSONField(name = "email")
        private String email;
        @JSONField(name = "status")
        private Integer status;
        @JSONField(name = "create_time")
        private String createTime;
        @JSONField(name = "last_login_time")
        private Object lastLoginTime;
        @JSONField(name = "last_login_ip")
        private String lastLoginIp;
        @JSONField(name = "bid")
        private Integer bid;
        @JSONField(name = "cid")
        private Integer cid;
        @JSONField(name = "parent_id")
        private Integer parentId;
        @JSONField(name = "online_status")
        private Integer onlineStatus;
        @JSONField(name = "token")
        private String token;
        @JSONField(name = "code")
        private String code;

        public Integer getId() {
            return id;
        }

        public void setId(Integer id) {
            this.id = id;
        }

        public String getUsername() {
            return username;
        }

        public void setUsername(String username) {
            this.username = username;
        }

        public String getPassword() {
            return password;
        }

        public void setPassword(String password) {
            this.password = password;
        }

        public String getMobile() {
            return mobile;
        }

        public void setMobile(String mobile) {
            this.mobile = mobile;
        }

        public String getEmail() {
            return email;
        }

        public void setEmail(String email) {
            this.email = email;
        }

        public Integer getStatus() {
            return status;
        }

        public void setStatus(Integer status) {
            this.status = status;
        }

        public String getCreateTime() {
            return createTime;
        }

        public void setCreateTime(String createTime) {
            this.createTime = createTime;
        }

        public Object getLastLoginTime() {
            return lastLoginTime;
        }

        public void setLastLoginTime(Object lastLoginTime) {
            this.lastLoginTime = lastLoginTime;
        }

        public String getLastLoginIp() {
            return lastLoginIp;
        }

        public void setLastLoginIp(String lastLoginIp) {
            this.lastLoginIp = lastLoginIp;
        }

        public Integer getBid() {
            return bid;
        }

        public void setBid(Integer bid) {
            this.bid = bid;
        }

        public Integer getCid() {
            return cid;
        }

        public void setCid(Integer cid) {
            this.cid = cid;
        }

        public Integer getParentId() {
            return parentId;
        }

        public void setParentId(Integer parentId) {
            this.parentId = parentId;
        }

        public Integer getOnlineStatus() {
            return onlineStatus;
        }

        public void setOnlineStatus(Integer onlineStatus) {
            this.onlineStatus = onlineStatus;
        }

        public String getToken() {
            return token;
        }

        public void setToken(String token) {
            this.token = token;
        }

        public String getCode() {
            return code;
        }

        public void setCode(String code) {
            this.code = code;
        }

        @Override
        public String toString() {
            return "UserDTO{" +
                    "id=" + id +
                    ", username='" + username + '\'' +
                    ", password='" + password + '\'' +
                    ", mobile='" + mobile + '\'' +
                    ", email='" + email + '\'' +
                    ", status=" + status +
                    ", createTime='" + createTime + '\'' +
                    ", lastLoginTime=" + lastLoginTime +
                    ", lastLoginIp='" + lastLoginIp + '\'' +
                    ", bid=" + bid +
                    ", cid=" + cid +
                    ", parentId=" + parentId +
                    ", onlineStatus=" + onlineStatus +
                    ", token='" + token + '\'' +
                    ", code='" + code + '\'' +
                    '}';
        }
    }

    @Override
    public String toString() {
        return "User{" +
                "user=" + user +
                ", token='" + token + '\'' +
                '}';
    }
}
